function test() {
  const a: string | undefined = 'hello';
  const b = 'world';

  if (a !== b) {
    console.log('safe');
  }

  const result = (a != null && a === 'something') ? true : false;
}
